package com.usefullc.demo.query;

import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 测试1查询实体
 * @author: 星空
 * @date: 20220622
 */
@ApiModel
@Data
public class Test1Query extends BaseQuery {
    //useful_auto_generate_section_start

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=10)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=0, max=3)
    @ApiModelProperty(notes = "状态")
    private Integer status;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "职务")
    private Long positionId;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=0, max=180)
    @ApiModelProperty(notes = "年龄")
    private Integer age;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "部门")
    private Long deptId;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=320)
    @ApiModelProperty(notes = "描述3")
    private String description3;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "创建时间")
    private Date gmtCreate;

    @UsefulQueryField()
    @UsefulPropertyVerify(type=ValidTypeEnum.DATE)
    @ApiModelProperty(notes = "修改时间")
    private Date gmtModified;


//useful_auto_generate_section_end
}
